import xhr from "../axios/request";
import { IGetAttentionsParams } from "../constant/attention";

export const getUserFollowList = (params: IGetAttentionsParams) => {
  return xhr.get('/user/followings', {
    params
  })
}


export const followUser = (target: string) => {
  return xhr.post('/user/followings', {
    target
  })
}

export const cancelFollowUser = (target: string) => {
  return xhr.delete('/user/followings/' + target)
}


export const getUserFansList = () => {
  return xhr.get('/user/followers')
}